<?php


// no direct access
defined('_JEXEC') or die('Restricted access');


class modBlocknewsHelper{
	
	function getArticle($id){
		$db		=& JFactory::getDBO();
		$query = "SELECT id,title,introtext
				  FROM #__content WHERE id = $id";
		$db->setQuery($query);
		$article = $db->loadObjectList();
		return $article;
	}
	
}